/*
 * Open Hospital (www.open-hospital.org)
 * Copyright © 2006-2023 Informatici Senza Frontiere (info@informaticisenzafrontiere.org)
 *
 * Open Hospital is a free and open source software for healthcare data management.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * https://www.gnu.org/licenses/gpl-3.0-standalone.html
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <https://www.gnu.org/licenses/>.
 */
package org.isf.medicalstock.service;

import java.time.LocalDateTime;
import java.util.List;

import org.isf.medicalstock.service.MedicalStockIoOperations.MovementOrder;
import org.springframework.stereotype.Repository;

@Repository
public interface MovementIoOperationRepositoryCustom {

	List<Integer> findMovementWhereDatesAndId(String wardId, LocalDateTime dateFrom, LocalDateTime dateTo);

	List<Integer> findMovementWhereData(Integer medicalCode, String medicalType, String wardId, String movType,
			LocalDateTime movFrom, LocalDateTime movTo, LocalDateTime lotPrepFrom,
			LocalDateTime lotPrepTo, LocalDateTime lotDueFrom, LocalDateTime lotDueTo);

	List<Integer> findMovementForPrint(String medicalDescription, String medicalTypeCode, String wardId,
			String movType, LocalDateTime movFrom, LocalDateTime movTo, String lotCode, MovementOrder order);

}
